package com.lc.luzhengtang;

import com.zcx.helper.app.AppApplication;
import com.zcx.helper.app.AppPreferences;

/**
 * Created by Administrator on 2016/9/6.
 */
public class BasePreferences2 extends AppPreferences {

    public BasePreferences2(AppApplication appApplication) {
        super(appApplication, "asdfasdf");
    }



    public void saveIsGuide(boolean isGuide) {

        putBoolean("isGuide", isGuide);

    }

    public boolean readIsGuide() {

        return getBoolean("isGuide", false);

    }

    public void saveSign(String sign) {
        putString("sign", sign);
    }

    public String readSign() {

        return getString("sign", "");

    }

    public void saveFlag(String flag) {
        putString("flag", flag);
    }

    public String readFlag() {

        return getString("flag", "");

    }


    public void saveUid(String id) {
        putString("uid", id);
    }

    public String readUid() {

        return getString("uid", "");

    }


   /* usernames*/

    public void saveUserNames(String usernames) {

        putString("usernames", usernames);

    }

    public String readUserNames() {

        return getString("usernames", "");

    }
    public void saveUserName(String username) {

        putString("username", username);

    }

    public String readUserName() {

        return getString("username", "");

    }



    public void saveName(String name) {

        putString("name", name);

    }

    public String readName() {

        return getString("name", "");

    }




    public void saveMobile(String mobile) {

        putString("mobile", mobile);

    }

    public String readMobile() {

        return getString("mobile", "");

    }



    public void savePhone(String phone) {

        putString("phone", phone);

    }

    public String readPhone() {

        return getString("phone", "");

    }



    public void saveAvatar(String avatar) {

        putString("avatar", avatar);

    }

    public String readAvatar() {

        return getString("avatar", "");

    }








    public void savePassword(String password) {

        putString("password", password);

    }

    public String readPassword() {

        return getString("password", "");

    }



    public void savePayword(String payword) {

        putString("payword", payword);

    }

    public String readPayword() {

        return getString("payword", "");

    }




    public void saveRole_id(String role_id) {

        putString("role_id", role_id);

    }

    public String readRole_id() {

        return getString("role_id", "");

    }



    public void saveSex(String sex) {

        putString("sex", sex);

    }

    public String readSex() {

        return getString("sex", "");

    }






    public void saveEmail(String email) {

        putString("email", email);

    }

    public String readEmail() {

        return getString("email", "");

    }




    public void saveQq(String qq) {

        putString("qq", qq);

    }

    public String readQq() {

        return getString("qq", "");

    }



    public void saveCreate_time(String create_time) {

        putString("create_time", create_time);

    }

    public String readCreate_time() {

        return getString("create_time", "");

    }




    public void saveDatetimes(String datetimes) {

        putString("datetimes", datetimes);

    }

    public String readDatetimes() {

        return getString("datetimes", "");

    }


}
